{extend name="user/index" /}

{block name="main"}
 <div class="content-page">
    <div class="content">
        <div class="row top-summary">
            <div class="col-md-12">
                <table class="table bg-info table-hover mt30">
                    <tr>
                        <th>ID</th>
                        <th>NAME</th>
                        <th>status</th>
                        <th class="col-md-4">ACTION</th>
                    </tr>

                    {volist name="data" key="k" id="v"}
                    <tr>
                        <td>{$v['id']}</td>
                        <td>{$v['name']}</td>
                        <td>{$v['status']==1?'启用':'禁用'}</td>
                        <td>
                            <a href="#" class="btn btn-xs btn-primary"> 编辑角色 </a>
                            <a href="{:url('admin/rolecontroller/nodelist', ['id'=>$v['id']])}" class="btn btn-xs btn-primary" class="btn btn-xs btn-primary"> 分配权限 </a>
                            <button class="btn btn-xs btn-danger del-btn" data-id="" > 删除角色 </button>
                        </td>
                    </tr>
                    {/volist}
                </table>
            </div>
        </div>
    </div>
</div>
{/block}